#include<iostream>
#include<algorithm>
using namespace std;
const int N=1e5+10;
int n,ans;
int a[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++)scanf("%d",&a[i]);
    sort(a+1,a+n+1);
    for(int i=1,j=2;j<=n;i++,j++)
    {
        while(j<=n&&a[j]<=a[i])j++;
        ans--;
    }
    cout<<ans<<endl;
    return 0;
}
